# -*- coding: utf-8 -*-
"It is the program for definition of quantity of wall-paper"
 
class Win_Door:
     """
Class Win_Door calculates the area of a rectangular.
Method __init__ accepts two parameters: length and width.
     """
     def __init__(self,x,y):
          self.square = x * y
 
class Room:
     """
Class Room is intended for definition of the pasted over area of a room.
Method __init__ accepts three arguments (length, width and height).
     """
     def __init__(self,x,y,z):
          self.square = 2 * z * (x + y)
     def win_door(self, d,e, f,g, m=1,n=1):
          """
The first pair parameters - the sizes of a window,
the second pair - the sizes of a door,
the fifth and sixth parameters - quantity of windows and doors accordingly
          """
          self.window = Win_Door(d,e)
          self.door = Win_Door(f,g)
          self.numb_w = m
          self.numb_d = n
     def wallpapers(self):
          """
This method calculates the pasted over area
          """
          self.wallpapers = self.square - \
               self.window.square * self.numb_w \
               - self.door.square * self.numb_d
     def printer(self):
          """
Displays the information
          """
          print ("Площадь стен комнаты равна "\
          ,str(self.square)," кв.м")
          print ("Оклеиваемая площадь равна: ", \
               str(self.wallpapers), " кв.м")